package app;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author AlexTien
 * @version currentVersion
 * @package controller
 * @description
 * @createtime 17/7/6 下午7:54
 */
@RestController
public class LuckyWordController {
    @Value("${lucky-word}") String luckyWord;
    @RequestMapping("/lucky-word")
    public String showLuckyWord() {
        return "the lucky word is :" + luckyWord;
    }
}
